<script setup></script>
<template>
    <div>
        <header class="top">
            <span class="top-text">TodoList</span>
            <input class="inp" type="text" v-model="infor" @keydown.enter="add" />
        </header>
    </div>
</template>
<style scoped>
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 500px;
    height: 40px;
    background-color: black;
    line-height: 40px;
}
.top-text {
    color: #ffffff;
}
.inp {
  width: 200px;
  height: 25px;
  padding-left: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  margin-right: 10px;
}
</style>
